From: Glenn Morris Date: Fri, 10 Feb 2012 02:44:27 +0000 (-0500) Subject: * doc/emacs/programs.texi (Misc for Programs): Mention electric-layout-mode. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~324^2~825 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=0449d878891b9d309c3d827912e5f312e2279b9b;p=emacs.git * doc/emacs/programs.texi (Misc for Programs): Mention electric-layout-mode. --- diff --git a/doc/emacs/ChangeLog b/doc/emacs/ChangeLog index 6b534aaf09c..236851efd24 100644 --- a/doc/emacs/ChangeLog +++ b/doc/emacs/ChangeLog @@ -1,7 +1,11 @@ +2012-02-10 Glenn Morris + + * programs.texi (Misc for Programs): Mention electric-layout-mode. + 2012-02-09 Glenn Morris - * buffers.texi (Misc Buffer): M-x info does not seem to require a buffer - switch after M-x rename-uniquely. + * buffers.texi (Misc Buffer): M-x info does not seem to require a + buffer switch after M-x rename-uniquely. * trouble.texi (Checklist): Mention C-c m in report-emacs-bug. diff --git a/doc/emacs/programs.texi b/doc/emacs/programs.texi index 8ba9b78603a..346e2fff5ff 100644 --- a/doc/emacs/programs.texi +++ b/doc/emacs/programs.texi @@ -1415,6 +1415,12 @@ paragraph commands to work on. Auto Fill mode, if enabled in a programming language major mode, indents the new lines which it creates. +@findex electric-layout-mode + Electric Layout mode (@kbd{M-x electric-layout-mode}) is a global +minor mode that automatically inserts newlines when you type certain +characters; for example, @samp{@{}, @samp{@}} and @samp{;} in Javascript +mode. + Apart from Hideshow mode (@pxref{Hideshow}), another way to selectively display parts of a program is to use the selective display feature (@pxref{Selective Display}). Programming modes often also